package com.xyht.sca_s.student_manage_system.modules.dormitory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.dormitory.entity.SmsDormitory;
import com.xyht.sca_s.student_manage_system.modules.dormitory.entity.req.SmsDormitoryAddReq;
import com.xyht.sca_s.student_manage_system.modules.dormitory.entity.req.SmsDormitoryDeletedReq;
import com.xyht.sca_s.student_manage_system.modules.dormitory.entity.req.SmsDormitoryInfoExportReq;
import com.xyht.sca_s.student_manage_system.modules.dormitory.entity.req.SmsDormitoryUpdateReq;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;
import java.util.concurrent.Future;

/**
 * <p>
 * 宿舍管理表 服务类
 * </p>
 *
 * @author XYHT
 * @since 2024-01-08
 */
public interface SmsDormitoryService extends IService<SmsDormitory> {



    ResponseResult addDormitory(String userId, SmsDormitoryAddReq addReq);

    ResponseResult deletedDormitory(SmsDormitoryDeletedReq deletedReq);

    ResponseResult updateDormitory(SmsDormitoryUpdateReq updateReq,String userId);

    ResponseResult getDormitoryList(String buildId,String floorId,String dormitoryId,Integer sex,
                                    Integer bedNumber,String feeStandards,Integer pageNum,Integer pageSize,String name,String buildingDescription);

    Future<ResponseResult> exportBuildInfo(SmsDormitoryInfoExportReq exportReq, HttpServletResponse response);

    Future<ResponseResult> batchDormitoryOwnership(Map<String, Object> map, String user_id);
}
